package com.baiku.sanhos.response;

import lombok.Getter;

@Getter
public enum StatusCode {
    SUCCESS(1,"OK"),
    FAIL_LOGIN(1010,"登录失败"),
    NOT_LOGIN(1000,"未登录"),
    LOGIN_SUCCESS(1001,"登录成功"),
    PASSWORD_ERROR(1002,"密码错误"),
    USERNAME_ERROR(1003,"用户名错误"),
    USERNAME_ALREADY_EXISTS(1004,"用户名已存在"),
    USERNAME_NOT_EXISTS(1005,"用户名不存在"),
    FORBIDDEN_ERROR(1006,"无权访问"),
    DATA_NOT_FOUND(1007,"数据不存在"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败"),
    BOOKING_SUCCESS(2003,"预约成功,"),
    BOOKING_FAILED(2004,"预约失败,预约时间存在冲突"),
    VALIDATE_ERROR(3002, "参数校验失败"),
    CODE_ERROR(3003,"验证码错误"),
    TIME_CONVERSION_ERROR(3004, "时间转换异常"),
    PAYMENT_ERROR(3005, "已缴费"),
    DISPENSING_ERROR(3006, "请先开始配药"),
    NO_ALREADY_EXISTS(4001,"工号已存在"),
    SCHEDULING_EXISTS(4002,"排班已存在"),
    CANCELLED_ERROR(4003,"该用户已经取消"),
    SEEN_SUCCESS(4004,"该用户已就诊完成，无法取消"),
    UPPER_LIMIT_CHILD(4005,"该账号用户达到上限，无法添加"),
    SEND_SUCCESSION(2006,"发送成功"),
    SEND_FAIL(4006,"发送失败"),
    REG_SUCCESSION(2008,"注册成功"),
    REG_FAIL(4008,"注册失败，手机号已绑定过帐号"),
    ERROR_UNAUTHORIZED(6000,"操作失败，您当前未登录！"),
    LAPSED_TOKEN(7000,"token过期，请重新登录"),
    LOGOUT_OK(2009,"登出成功！")
    ;

    private int code;
    private String msg;
    StatusCode(){}
    StatusCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

}
